package com.aiyan.edu.service.auth.center.client;

import com.aiyan.edu.framework.client.AiyanServices;
import com.aiyan.edu.framework.domain.ucenter.User;
import com.aiyan.edu.framework.domain.ucenter.ext.UserExt;
import com.aiyan.edu.framework.model.response.CommonResponseResult;
import com.aiyan.edu.service.auth.center.client.fallback.UserClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: zqzhou
 * @create: 2019/11/22 00:17
 **/
@FeignClient(value = AiyanServices.AIYANEDU_SERVICE_CENTER_USER, fallback = UserClientFallback.class)
public interface UserClient {

    @GetMapping("/ucenter/userext/{username}")
    public CommonResponseResult<UserExt> getUserExt(@PathVariable("username") String username);
}
